package designMode.strategyPattern;

/**
 * @ClassName ModelDuck
 * @Description 模型鸭
 * @Author LIBOFEI
 * @Date 2020/6/14 17:04
 * @Version 1.0
 **/
public class ModelDuck extends Duck{

    public ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("模型鸭");
    }
}
